const TokenKey = 'App-Token'
const UserTypeKey = 'App-UserType'

export function getToken() {
  return uni.getStorageSync(TokenKey)
}

export function setToken(token) {
  return uni.setStorageSync(TokenKey, token)
}

export function removeToken() {
  return uni.removeStorageSync(TokenKey)
}

export function getUserType() {
  return uni.getStorageSync(UserTypeKey)
}

export function setUserType(type) {
  return uni.setStorageSync(UserTypeKey, type)
}

export function removeUserType() {
  return uni.removeStorageSync(UserTypeKey)
}